<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var str = "this is javascrpit";
        var a1=str.indexOf("java")
        console.log(a1);
        var str1=str.toLocaleUpperCase();
        console.log(str1);
        var a2=str.split(" ");
        console.log(a2);
        console.log(a2[0]);
        console.log(a2.push("c"));
        var color = prompt("请输入你喜欢的颜色")
        console.log(color);
        
        
        
    </script>
</head>
<body>
    
</body>
</html>